#ifndef CLIENTTCP_H
#define CLIENTTCP_H

#include <QWidget>
#include <QTcpSocket>
namespace Ui {
class ClientTcp;
}

class ClientTcp : public QWidget
{
    Q_OBJECT

public:
    explicit ClientTcp(QWidget *parent = 0);
    ~ClientTcp();

private slots:
    void on_connectBt_clicked();

    void connect_suc();
    void connect_dis();
    void on_sendBt_clicked();

    void read_data();
    void on_clearBt_clicked();

private:
    Ui::ClientTcp *ui;
    QTcpSocket msocket;
};

#endif // CLIENTTCP_H
